﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MatchDisp.Util
{
    public class DrawingUtil
    {
        public static System.Drawing.Size ScaleSize(System.Drawing.Size size, double scale)
        {
            return new System.Drawing.Size((int)(size.Width * scale), (int)(size.Height * scale));
        }

        public static System.Drawing.Rectangle ScaleRect(System.Drawing.Rectangle rect, double scale)
        {
            return new System.Drawing.Rectangle((int)(rect.X * scale), (int)(rect.Y * scale),
                (int)(rect.Width * scale), (int)(rect.Height * scale));
        }
    }
}
